#! /bin/bash

echo 'deb http://ftp.indexdata.dk/debian squeeze main' >> /etc/apt/sources.list
echo 'deb-src http://ftp.indexdata.dk/debian squeeze main' >> /etc/apt/sources.list
echo 'deb http://debian.koha-community.org/koha squeeze main' >> /etc/apt/sources.list

wget -O- http://ftp.indexdata.dk/debian/indexdata.asc | apt-key add -
wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add -
apt-get update

LC_ALL="en_US"
LANG=en_US

apt-get install koha-common mysql-server

echo 'DOMAIN=""' >> /etc/koha/koha-sites.conf
echo 'INTRAPORT="80"' >> /etc/koha/koha-sites.conf
echo 'INTRAPREFIX=""' >> /etc/koha/koha-sites.conf
echo 'INTRASUFFIX="admin"' >> /etc/koha/koha-sites.conf
echo 'DEFAULTSQL="/usr/share/koha/defaults.sql.gz"' >> /etc/koha/koha-sites.conf

a2enmod rewrite
a2dissite 000-default
koha-create --create-db koha
